<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="se"
	uri="http://www.springframework.org/security/tags"%>
<link type="text/css" rel="stylesheet"
	href="resources/css/patient/articleHeader.css">
<link type="text/css" rel="stylesheet"
	href="resources/css/patient/noticeDetail.css">
<script src="resources/js/patient/noticeDetail.js"></script>
<script>
function button_event() {
	if (confirm("정말로 삭제하시겠습니까?") == true) { // 확인
		location.href = 'noticeDel.do?notice_id='+${notice.notice_id};
	} else { // 취소
		return;
	}
}
</script>
	<div>
		<div class="nav_information">
			<img src="resources/images/gr_navi_home.png">&nbsp;&nbsp;>&nbsp;&nbsp;병원소식
		</div>
		<div class="nav_detail_name">병원소식</div>
		<div class="nav_information_detail">
			<div class="nav_information_detail_bgimg">
				<p>메디컬탑병원 공지 및 소식 입니다.</p>
				<p>병원을 이용하시는 고객을 위하여 다양한 소식과 서비스를 알려드립니다.</p>
			</div>
		</div>
	</div>
	<div class="body_div">
		<table class="content_table">
			<tr>
				<td id="m_td">제목</td>
				<td colspan="3">${notice.title }</td>
			<tr>
			<tr>
				<td id="m_td">작성자</td>
				<td id="writer">${notice.writer }</td>
				<td id="m_td">작성일</td>
				<td>${notice.write_date }</td>
			<tr>
			<tr>
				<td id="m_td">내용</td>
				<td colspan="3"></td>
			</tr>
			<tr>
				<td colspan="4" class="content_td"><div class="content_td_div">${notice.content }</div></td>
			</tr>
		</table>
		<div class="noticeViewList">
			<input type="button" class="normalBtn" id="noticeBtn" value="목록"
				onclick="history.back(1);">
		</div>
		<se:authorize ifAnyGranted="ROLE_ADMIN">
			<div class="editDelBtn">
				<input type="button" id="noticeBtn" class="normalBtn" value="수정"
					onclick="location.href='noticeEdit.do?notice_id=${notice.notice_id}'">
				<input type="button" id="noticeBtn" class="normalBtn" value="삭제"
					onclick="button_event();">
			</div>
		</se:authorize>
	</div>
